<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

class ArticleFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition(){
        return [
            'title' => $this->faker->title,
            'desn' => $this->faker->text(100),
            'pic' => "/uploads/article/" . rand(1, 6) . ".png",
            'author' => $this->faker->name(),
            'body' => $this->faker->text
        ];
    }



}
